{% extends "base.html" %}
{%  block content %}
			<div id="content-header">
				<h1>Enter Car Information</h1>
			</div>
				<div id="breadcrumb">
					<a href="index.html" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a>
					<a href="#" class="tip-bottom">Car System</a>
					<a href="#" class="current">Add New Car</a>
				</div>
							<div class="container-fluid">
				<div class="row-fluid">
					<div class="span12">
			<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-align-justify"></i>									
								</span>
								<h5>Data Input</h5>
							</div>
							<div class="widget-content nopadding">
			
<form action="../post/" method="post">
    {% csrf_token %}
    <table class="table table-hover table-condensed table-striped">
        <tr>
            <th> Brand </th>
            <th> Model</th>
            <th> Chase No. </th>
            <th> Year </th>
        </tr>
        <tr>
            <td>{{ car.brand }}</td>
            <td>{{ car.car_model }}</td>
            <td>{{ car.chase_no }}</td>
            <td>{{ car.year }}</td>
        </tr>
        <tr>
            <th colspan="4" align="left">Owner Information , Select Company OR Person  </th>
            
            

        </tr>
        <tr>
            <td colspan="4" align="left" >Person : {{ car.user }} &nbsp;&nbsp;&nbsp; Or &nbsp;&nbsp;&nbsp; Company : {{ car.company }}</td>

        </tr>
        <tr>
            <th> Plate Number</th>
            <th> English Part</th>
            <th> Arabic Part</th><th></th>

        </tr>
        <tr>
            <td>{{ car.plate_number }}</td>
            <td>{{ car.plate_str }}</td>
            <td>{{ car.arabic_plate_str }}</td>

        </tr>
        <tr>
            <th> Registration Expiry </th>
            <th colspan="2"> Hijri Expiry (Optional)><th></th><th></th>
        </tr>
        <tr>
            <td colspan="1"> {{ car.expiry_date }}</td>
            <td colspan="3">Day : {{ car.arabic_reg_day }} , Month : {{ car.arabic_reg_month }}, Year : {{ car.arabic_reg_year }}</td>

        </tr>

        <tr>
            <th> Checkup Expiry </th><th>( Hijri ) (Optional)</th><th></th><th></th>

        </tr>
        <tr>
        <td>{{ car.checkup_expiry }}</td><td colspan="3">Day : {{ car.arabic_check_day }} , Month : {{ car.arabic_check_month }} , Year : {{ car.arabic_check_year }}</td>

        </tr>
        <tr>
            <th> Insurance Company </th>
            <th> Insurance Cost</th>
            <th> Type</th>
            <th></th>

        </tr>
        <tr>
            <td>{{ car.insurance }}</td>
            <td>{{ car.insurance_cost }}</td>
            <td>{{ car.insurance_type }}</td>

        </tr>

        <tr>

            <th> Start Date </th>
            <th> End Date</th>
            <th></th>
            <th></th>
        </tr>
        <tr>

            <td>{{ car.insurance_start }}</td>
            <td>{{ car.insurance_end }}</td>
        </tr>

    </table>
    <div class="span4 offset10">
        <input type="submit" value="Submit" />
    </div>
    </div></div></div></div>
</form>

{% endblock %}